package com.bcbim.model_server.component.mapper;

import com.bcbim.model_server_interface.component.bo.ComponentTreeBO;
import com.bcbim.model_server_interface.component.dao.ComponentTreeDAO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 构件树mapper
 * @Author: ye
 * @Date: 2022/4/6
 * @Version: V1.0
 **/
@Mapper
public interface ComponentTreeMapper {

    /**
     * @Description: 新建构件树数据
     * @Param: List<ComponentTreeDAO>
     * @Return: int
     * @Author: ye
     * @Date: 2022/3/30
     */
    int insertComponentTree(@Param("list") List<ComponentTreeDAO> arrComponentTree);

    /**
     * @Description: 查询文件的组件树
     * @Param: fileId
     * @Return: List<ComponentTreeBO>
     * @Author: ye
     * @Date: 2022/3/30
     */
    List<ComponentTreeBO> getComponentTree(String fileId);
}
